package com.xy.p2p.service;

import java.util.List;
import java.util.Map;
import com.xy.core.service.BaseService;
import com.xy.common.page.Pagination;

import com.xy.p2p.model.Ttenderrecord;

public abstract interface TtenderrecordService extends BaseService<Ttenderrecord>
{
	public abstract boolean checkExist(String paraName,String paraValue);
   public abstract List<Ttenderrecord> getTtenderrecord(Map<String, Object> map);
	public abstract Pagination getTtenderrecordByPage(Map<String, Object> map, int pageNo,
			int pageSize);
	public abstract String tender(Ttenderrecord ttenderrecord);
	public String tenderYED(Ttenderrecord ttenderrecord);
	/**
    * 放款时发送邮件通知客户
    * @param trid 投资者ID
    * */
	public void sendInvestorMail(long trid);
	/**
    * 还款时发送邮件通知客户
    * @param trid 投资者ID
    * */
	public void sendRefundMail(long trid);
}